﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     
    xmlns:ForumsClient="clr-namespace:Microsoft.Forums.ForumsClient">

    <ForumsClient:FormatToString x:Uid="ForumsClient:FormatToString_1" x:Key="FormatUnreadPosts" />
    <DataTemplate x:Uid="DataTemplate_1" x:Key="ForumHeaderTemplate">
        <StackPanel x:Uid="StackPanel_2" Orientation="Horizontal">
            <Image x:Uid="Image_2" Margin="0,0,0,0" Width="16" Height="16" Stretch="Fill" Source="..\images\MSForumsClient.png"/>
            <TextBlock x:Uid="TextBlock_1" Margin="3,0,0,0">Forums</TextBlock>
        </StackPanel>
    </DataTemplate>
    <DataTemplate x:Uid="DataTemplate_2" x:Key="ForumItem">
        <DockPanel x:Uid="DockPanel_2">
            <ForumsClient:WaitThrobber Margin="0,0,3,0" Radius="16" Throb="{Binding Path=IsSyncInProgress}"   />
            <Image x:Uid="Image_3" Margin="0,0,0,0" Width="16" Height="16" Source="..\images\folder.ico" Stretch="Fill" />
            <TextBlock x:Uid="TextBlock_2" Margin="3 0 0 0" VerticalAlignment="center" Text ="{Binding Path=Forum.DisplayName}"/>
                <TextBlock x:Uid="TextBlock_3" Margin="3 0 0 0" Foreground="Blue"  VerticalAlignment="center" Text ="{Binding Path=UnreadPostCount, Converter={StaticResource FormatUnreadPosts}, ConverterParameter='\(\{0\}\)'}" />
        </DockPanel>
    </DataTemplate>

</ResourceDictionary>
